package newcoder;

public class Regex {

    public static void main(String[] args) {
        String strs = "183.33.48.06";
        long s = 1323;
        String st = String.valueOf(s);
        if(strs.matches("(\\d|[1-9]\\d|25[0-5]|2[0-4]\\d|1\\d?\\d?)(\\.(\\d|[1-9]\\d|25[0-5]|2[0-4]\\d|1\\d?\\d?)){3}"))
            System.out.println(true);
        else System.out.println(false);

        String strs2 = "";

        if(strs2.matches("\\A([0-9-a-f-A-F]{1,4})(\\.([0-9-a-f-A-F]{1,4})){7}"))
            System.out.println(true);
        else System.out.println(false);
    }

}
